<%@ page contentType="text/html; charset=utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>新建学生信息</title>
<style type="text/css">
.errors {
	background-color: #FFCCCC;
	border: 1px solid #CC0000;
	width: 250px;
	margin-bottom: 8px;
	margin: auto;
	top: 15;
	left: 0;
	right: 0;
}

.errors li {
	list-style: none;
}
</style>
</head>
<body>
	<h1>
		<center>新建学生信息</center>
	</h1>
	<s:if test="hasActionErrors()">
		<div class="errors">
			<s:actionerror />
		</div>
	</s:if>
	<s:form action="student!createStudent.action" method="post"
		theme="simple" name="add">
		<table align="center" style="background-color:#D3D3D3">
			<tr>
				<td>姓名<font color="red">*</font>
				</td>
				<td><s:textfield name="student.studentName" /> <s:fielderror
						fieldName="studentNameInfo" />
				</td>
			</tr>
			<tr>
				<td>学号<font color="red">*</font></td>
				<td><s:textfield name="student.studentNumber" /><s:fielderror
						fieldName="studentNumberInfo" />
				</td>
			</tr>
			<tr>
				<td>性别<font color="red">*</font>
				</td>
				<td><s:textfield name="student.sex" /> <s:fielderror
						fieldName="studentSexInfo" />
				</td>
			</tr>
			<tr>
				<td>身高</td>
				<td><s:textfield name="student.height" />
				</td>
			</tr>
			<tr>
				<td>系部<font color="red">*</font>
				</td>
				<td><s:textfield name="student.department" /> <s:fielderror
						fieldName="studentDepartmentInfo" />
				</td>
			</tr>
			<tr>
				<td>专业<font color="red">*</font>
				</td>
				<td><s:textfield name="student.major" /> <s:fielderror
						fieldName="studentMajorInfo" />
				</td>
			</tr>
			<tr>
				<td>QQ
				</td>
				<td><s:textfield name="student.qqNumber" />
				</td>
			</tr>
			<tr>
				<td>电话号码
				</td>
				<td><s:textfield name="student.cellphone" />
				</td>
			</tr>
			<tr align="center">
				<td colspan="2"><s:submit value="%{'添加'}" /> <s:reset
						value="%{'返回'}"
						onclick="window.location.href='student!listStudent.action';" />
				</td>
			</tr>
		</table>
	</s:form>
</body>
</html>
